﻿using Anke.SHManage.Model;
using Anke.SHManage.MSSQLDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL
{
    public class RevisitBLL
    {
        //新增回访时，查出多少任务供勾选。
        RevisitDAL rvdal = new RevisitDAL();
        public object GetTaskInfoForRevisitPick(ref int total, DateTime TaskDate, string Station, int CallType,string eventDispatchCenterID)
        {
            DateTime taskdatebegin = TaskDate;
            DateTime taskdateend = TaskDate.AddDays(1);
            return rvdal.GetTaskInfoForRevisitPick(ref total, taskdatebegin, taskdateend, Station, CallType, eventDispatchCenterID);
        }
        //回访主表内容
        public object GetRevisitMain(int page, int rows, ref int rowtotal)
        {
            return rvdal.GetRevisitMain(page, rows, ref rowtotal);
        }

        public object GetRevisitAddDetail(ref int rowtotal, string ID, int ifOperate)
        {
            return rvdal.GetRevisitAddDetail(ref rowtotal, ID, ifOperate);
        }


        public RevisitNumberInfo getRevisitNumber(string ID)
        {
            return rvdal.GetRevisitNumber(ID);
        }
        public string getOldDeclare(string ID)
        {
            return rvdal.getOldDeclare(ID);
        }
        public List<I_Revisit> getRevisitAllDate()
        {
            return rvdal.getRevisitAllDate();
        }
    }
}
